package com.bean;

/**
 * Created by matengfei on 15/7/20.
 */
public class TalkMessage {


    /**
     * content : {"text":{"value":""},"audio":{"src":"www","len":1,"filename_local":""},"location":{"lo":121.438443,"la":31.275333}}
     * umeng_data : {"ret":"SUCCESS","data":{"msg_id":"uu98885143842563485100"}}
     * id_umeng : AsJXMGpEK4cJ1OqjMMcA_hIEIXpGAI4qPv4Spv2h8q65
     * title : MI 3,4.4.4
     * create_at : 1438425634000
     */
    private ContentEntity content;
    private Umeng_dataEntity umeng_data;
    private String id_umeng;
    private String title;
    private long create_at;
    private String type;
    private int id ;

    public void setContent(ContentEntity content) {
        this.content = content;
    }

    public void setUmeng_data(Umeng_dataEntity umeng_data) {
        this.umeng_data = umeng_data;
    }

    public void setId_umeng(String id_umeng) {
        this.id_umeng = id_umeng;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setCreate_at(long create_at) {
        this.create_at = create_at;
    }

    public ContentEntity getContent() {
        return content;
    }

    public Umeng_dataEntity getUmeng_data() {
        return umeng_data;
    }

    public String getId_umeng() {
        return id_umeng;
    }

    public String getTitle() {
        return title;
    }

    public long getCreate_at() {
        return create_at;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public class ContentEntity {
        /**
         * text : {"value":""}
         * audio : {"src":"www","len":1,"filename_local":""}
         * location : {"lo":121.438443,"la":31.275333}
         */
        private TextEntity text;
        private AudioEntity audio;
        private LocationEntity location;
        private VideoEntity video;
        private PicEntity pic;

        public void setText(TextEntity text) {
            this.text = text;
        }

        public void setAudio(AudioEntity audio) {
            this.audio = audio;
        }

        public void setLocation(LocationEntity location) {
            this.location = location;
        }

        public TextEntity getText() {
            return text;
        }

        public AudioEntity getAudio() {
            return audio;
        }

        public LocationEntity getLocation() {
            return location;
        }

        public VideoEntity getVideo() {
            return video;
        }

        public void setVideo(VideoEntity video) {
            this.video = video;
        }

        public PicEntity getPic() {
            return pic;
        }

        public void setPic(PicEntity pic) {
            this.pic = pic;
        }

        public class TextEntity {
            /**
             * value :
             */
            private String value;

            public void setValue(String value) {
                this.value = value;
            }

            public String getValue() {
                return value;
            }
        }


        public class VideoEntity {
            /**
             * src : www
             * len : 1
             * filename_local :
             */
            private String src;
            private int len;
            private String filename_local;

            public void setSrc(String src) {
                this.src = src;
            }

            public void setLen(int len) {
                this.len = len;
            }

            public void setFilename_local(String filename_local) {
                this.filename_local = filename_local;
            }

            public String getSrc() {
                return src;
            }

            public int getLen() {
                return len;
            }

            public String getFilename_local() {
                return filename_local;
            }
        }

        public class AudioEntity {
            /**
             * src : www
             * len : 1
             * filename_local :
             */
            private String src;
            private int len;
            private String filename_local;

            public void setSrc(String src) {
                this.src = src;
            }

            public void setLen(int len) {
                this.len = len;
            }

            public void setFilename_local(String filename_local) {
                this.filename_local = filename_local;
            }

            public String getSrc() {
                return src;
            }

            public int getLen() {
                return len;
            }

            public String getFilename_local() {
                return filename_local;
            }
        }

        public class LocationEntity {
            /**
             * lo : 121.438443
             * la : 31.275333
             */
            private double lo;
            private double la;

            public void setLo(double lo) {
                this.lo = lo;
            }

            public void setLa(double la) {
                this.la = la;
            }

            public double getLo() {
                return lo;
            }

            public double getLa() {
                return la;
            }
        }



        public class PicEntity {

            private String src;
            private String filename_local;
            private int len;

            public void setSrc(String src) {
                this.src = src;
            }


            public void setFilename_local(String filename_local) {
                this.filename_local = filename_local;
            }

            public String getSrc() {
                return src;
            }

            public String getFilename_local() {
                return filename_local;
            }

            public int getLen() {
                return len;
            }

            public void setLen(int len) {
                this.len = len;
            }
        }


    }

    public class Umeng_dataEntity {
        /**
         * ret : SUCCESS
         * data : {"msg_id":"uu98885143842563485100"}
         */
        private String ret;
        private DataEntity data;

        public void setRet(String ret) {
            this.ret = ret;
        }

        public void setData(DataEntity data) {
            this.data = data;
        }

        public String getRet() {
            return ret;
        }

        public DataEntity getData() {
            return data;
        }

        public class DataEntity {
            /**
             * msg_id : uu98885143842563485100
             */
            private String msg_id;

            public void setMsg_id(String msg_id) {
                this.msg_id = msg_id;
            }

            public String getMsg_id() {
                return msg_id;
            }
        }
    }
}
